﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QUANLYKHACHSAN_N4
{
    public partial class UserPhong : UserControl
    {
        public UserPhong()
        {
            InitializeComponent();
        }
        public UserPhong(string Title)
        {
            InitializeComponent();
            txtTenPhong.Text = Title;
        }

        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
        {
            this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            txtTenPhong.ForeColor = Color.Red;
        }

        private void pictureBox1_MouseLeave(object sender, EventArgs e)
        {
            this.BorderStyle = System.Windows.Forms.BorderStyle.None;
            txtTenPhong.ForeColor = Color.Blue;
        }

        private void UserPhong_Load(object sender, EventArgs e)
        {
            txtTenPhong.Left = (this.Width - txtTenPhong.Width) / 2;
        }
    }
}
